<?php
class comment_util_state {

	static	function getResourceInfoById($id) {				
				
				$state = Model::factory('comment_model_state');
//				$result =  MemRow::getCache(MemRow::genRowKey('comment_signature', $id));
//				if(!$result){
//						$result = $state->read_record_data_id($id);
//						$cacheRowKey = MemRow::genRowKey('comment_signature', $id);
//						MemRow::mset($cacheRowKey, $result);
//				}
				$result = $state->getSmsDataById($id);
				return array(
						'rid'	=>	$result['id'],
						'uid'	=>	$result['uid'],
						'username' => $result['username'],
						'title'	=>	 preg_replace($_SERVER['config']['smile2']['searcharray'],$_SERVER['config']['smile2']['replacearray'],$result['feel']).$result['state'],
						'create_time'	=>	$result['create_time'],
						'delete'		=>	$result['delete']						
				);
					
		}
		
		
}